import Vue from 'vue';
import Router from 'vue-router';
import About from '../views/about';
import backbone from '../views/services/backbone';
import cadre from '../views/services/cadre';
import graduate from '../views/services/graduate';
import invesment from '../views/services/investment';
import serviceProject from '../views/services/service-project';
import skill from '../views/services/skill';
import condition from '../views/condition';
import news from '../views/news';
import contact from '../views/contact';
import onlineMessage from '../views/online-message';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '*',
      redirect: '/about'
    },
    {// 首页
      path: '/about',
      name: '关于我们',
      component: About
    },
    {// 服务项目
      path: '/serviceProject',
      name: '经营范围',
      component: serviceProject
    },
    { path: '/graduate', name: '公司注册代理', component: graduate },
    { path: '/backbone', name: '代理记帐、代理报税', component: backbone },
    { path: '/cadre', name: '代办验资、审计、税审', component: cadre },
    { path: '/skill', name: '财务顾问、税务顾问', component: skill },
    { path: '/invesment', name: '代办各类许可证照', component: invesment },
    {// 入户条件
      path: '/condition',
      name: '中国钇企财富',
      component: condition
    },
    {// 新闻资讯
      path: '/news',
      name: '新闻资讯',
      component: news
    },
    {// 联系我们
      path: '/contact',
      name: '联系我们',
      component: contact
    },
    {// 在线留言
      path: '/onlineMessage',
      name: '在线留言',
      component: onlineMessage
    }
  ]
});
